package org.jeecg.modules.teacher.service.impl;

import org.apache.ibatis.annotations.Param;
import org.jeecg.common.system.base.entity.SysUserTit;
import org.jeecg.modules.teacher.entity.AstuTeacher;
import org.jeecg.modules.teacher.mapper.AstuTeacherMapper;
import org.jeecg.modules.teacher.service.IAstuTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 教师信息表
 * @Author: jeecg-boot
 * @Date:   2020-11-05
 * @Version: V1.0
 */
@Service
public class AstuTeacherServiceImpl extends ServiceImpl<AstuTeacherMapper, AstuTeacher> implements IAstuTeacherService {

    @Autowired
    public AstuTeacherMapper astsuTeacherMapper;
    @Override
    public int updateTeacherInfo(@Param("teacher") AstuTeacher teacher) {

        return astsuTeacherMapper.updateTeacherInfo(teacher);
    }
    public int  updateUserInfo(@Param("user") SysUserTit user){
        return astsuTeacherMapper.updateUserInfo(user);
    }
    public SysUserTit  selectUer(@Param("userid") String userid){
        return astsuTeacherMapper.selectUer(userid);
    }

    @Override
    public int deleteUserById(String userid) {
        return astsuTeacherMapper.deleteUserById(userid);
    }

    @Override
    public AstuTeacher selectInfoByTeacherNum(String teacherNumber) {
        return astsuTeacherMapper.selectInfoByTeacherNum(teacherNumber);
    }
}
